# $Id: PKGBUILD 88718 2013-04-22 01:25:41Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>

pkgname=urbanterror-data
pkgver=4.2.012
pkgrel=1
epoch=2
pkgdesc="A team-based tactical shooter based on the Quake 3 Engine (data files)"
arch=('any')
url="http://www.urbanterror.info"
license=('custom:freeware')
backup=('opt/urbanterror/q3ut4/server.cfg' 'opt/urbanterror/q3ut4/mapcycle.txt')
source=("http://www.f1m.fr/uploads/urt/UrbanTerror42_full012.zip")
md5sums=('283d5af346c29184f0415fac9850e521')

build() {
	cd $srcdir
}

package() {
  mkdir -p $pkgdir/opt/urbanterror
  cp -r $srcdir/UrbanTerror42/q3ut4 $pkgdir/opt/urbanterror/q3ut4

  install -Dm644 $srcdir/UrbanTerror42/q3ut4/readme42.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE

  echo -e "\nseta cl_cURLLib \"/usr/lib/libcurl.so.4\"" >> $pkgdir/opt/urbanterror/q3ut4/autoexec.cfg
}

# vim: sw=2:ts=2 et:
